﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Site1.Master" AutoEventWireup="true" CodeBehind="Category.aspx.cs" Inherits="Game_Admin_Demo.admin.Category" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="CSSTableGenerator">
        
        <asp:ListView ID="ListView1" runat="server" OnItemDataBound="ListView1_ItemDataBound">
            <LayoutTemplate>
                <table>
                    <tr>
                        <th>Category Name</th>
                        <th>Option</th>
                    </tr>

                    <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>

                </table>

            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td><%# Eval("tendm") %></td>
                    <td>
                        <asp:HiddenField runat="server" ID="hd1" Value='<%# Eval("madm") %>' />
                        <asp:LinkButton ForeColor="WhiteSmoke" OnClick="LinkButton1_Click" ID="LinkButton1" runat="server">Delete</asp:LinkButton>|
                    <asp:HyperLink NavigateUrl='<%# "editCat.aspx?id="+ Eval("madm") %>' ID="HyperLink1" ForeColor="WhiteSmoke" runat="server">Edit</asp:HyperLink>
                    </td>
                </tr>

            </ItemTemplate>
        </asp:ListView>
        <asp:HyperLink ForeColor="BlueViolet" NavigateUrl="createCat.aspx" ID="HyperLink2" runat="server">Creat new</asp:HyperLink>
    </div>
    
</asp:Content>
